<template>
  <div class="s1">
    <div class="riao">
      <div
        class="ria"
        :class="riaact == 0 ? 'riaactive' : ''"
        @click="tiatab(0)"
      >
        全部
      </div>
      <div
        class="ria"
        v-for="item in time1"
        :key="item.id"
        :class="riaact == item.id ? 'riaactive' : ''"
        @click="tiatab(item.id)"
      >
        {{ item.mc }}
      </div>
    </div>
    <div class="riao1">
      <div class="s11">
        <div class="s11-1" v-if="yearList.length !=0">
          <div class="smn" @click="toshow()">
            <div class="">时间</div>
            <i class="el-icon-arrow-down" v-if="show"></i>
            <i class="el-icon-arrow-up" v-else></i>
          </div>
          <div class="smn1" v-if="show">
            <el-checkbox-group v-model="nianfen" @change="shunianfen">
              <el-checkbox
                v-for="tag in yearList"
                :key="tag.name"
                :label="tag.name"
                >{{ tag.name }}
                <span style="font-size: 12px; color: #666; padding-left: 4px"
                  >({{ tag.num }}条)</span
                >
              </el-checkbox>
            </el-checkbox-group>
          </div>
        </div>
        <div class="s11-1" v-if="diqulist.length !=0">
            <div class="smn" @click="toshow1()">
              <div class="">地区</div>
              <i class="el-icon-arrow-down" v-if="show1"></i>
              <i class="el-icon-arrow-up" v-else></i>
            </div>
            <div class="smn1" v-if="show1">
              <el-checkbox-group v-model="diqumax" @change="diqumaxs">
                <el-checkbox v-for="tag in diqulist" :key="tag.dm" :label="tag.dm">{{
                  tag.name
                }}
                <span style="font-size: 12px; color: #666; padding-left: 4px"
                  >({{ tag.num }}条)</span
                >
                </el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
          <div class="s11-1" v-show="fxjblist.length !=0">
            <div class="smn" @click="toshow2()">
              <div class="">级别</div>
              <i class="el-icon-arrow-down" v-if="show2"></i>
              <i class="el-icon-arrow-up" v-else></i>
            </div>
            <div class="smn1" v-if="show2">
              <el-checkbox-group v-model="jbmax" @change="jbmaxst">
                <el-checkbox v-for="tag in fxjblist" :key="tag.dm" :label="tag.dm">{{
                  tag.name
                }}
                <span style="font-size: 12px; color: #666; padding-left: 4px"
                  >({{ tag.num }}条)</span
                >
                </el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
          <div class="s11-1" v-show="menleilist.length !=0">
            <div class="smn" @click="toshow3()">
              <div class="">门类</div>
              <i class="el-icon-arrow-down" v-if="show2"></i>
              <i class="el-icon-arrow-up" v-else></i>
            </div>
            <div class="smn1" v-if="show3">
              <el-checkbox-group v-model="mbmax" @change="mbmaxst">
                <el-checkbox v-for="tag in menleilist" :key="tag.dm" :label="tag.dm">{{
                  tag.name
                }}
                <span style="font-size: 12px; color: #666; padding-left: 4px"
                  >({{ tag.num }}条)</span
                >
                </el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
          <div class="s11-1" v-show="picilist.length !=0">
            <div class="smn" @click="toshow4()">
              <div class="">批次</div>
              <i class="el-icon-arrow-down" v-if="show4"></i>
              <i class="el-icon-arrow-up" v-else></i>
            </div>
            <div class="smn1" v-if="show4">
              <el-checkbox-group v-model="picimax" @change="pcmaxst">
                <el-checkbox v-for="tag in picilist" :key="tag.dm" :label="tag.dm">{{
                  tag.name
                }}
                <span style="font-size: 12px; color: #666; padding-left: 4px"
                  >({{ tag.num }}条)</span
                >
                </el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
          <div class="s11-1" v-show="jddilist.length !=0">
            <div class="smn" @click="toshow5()">
              <div class="">基地类型</div>
              <i class="el-icon-arrow-down" v-if="show5"></i>
              <i class="el-icon-arrow-up" v-else></i>
            </div>
            <div class="smn1" v-if="show5">
              <el-checkbox-group v-model="jdleibie" @change="pcmaxstjd">
                <el-checkbox v-for="tag in jddilist" :key="tag.dm" :label="tag.dm">{{
                  tag.name
                }}
                <span style="font-size: 12px; color: #666; padding-left: 4px"
                  >({{ tag.num }}条)</span
                >
                </el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
      </div>
      <div class="s12">
        <div class="cont">
          <div class="cont-1">
            <div>
              检索范围：
              <span v-for="i in type" :key="i">
                <span v-if="i == 5">普查线索档案,</span>
                <span v-if="i == 6">调查项目档案,</span>
                <span v-if="i == 7">非遗项目申报书,</span>
                <span v-if="i == 8">传承人申报书,</span>
                <span v-if="i == 9">基地申报书,</span>
                <span v-if="i == 28">会议档案,</span>
                <span v-if="i == 29">活动档案,</span>
                <!-- <span v-if="i == 30">文件档案,</span> -->
              </span>
            </div>
            <div style="padding-left: 24px">
              主题：<span>{{ keyword }}</span>
            </div>
          </div>
          <div class="cont-2">
            <div>
              共找到<span>{{ total }}</span
              >条结果
            </div>
            <!-- <div class="shuliang">1/321</div> -->
          </div>
        </div>
        <div class="cont1">
          <div class="cont1-3">
            <div
              style="
                display: flex;
                justify-content: flex-end;
                align-items: center;
              "
            >
              排序： <span>相关度</span
              ><img src="../../assets/images/pxs.png" alt="" />
            </div>
            <div style="padding-left: 12px">发表时间 : 综合</div>
          </div>
          <div class="cont1-2">
            <div>每页显示</div>
            <div>
              <el-select v-model="value" placeholder="">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  @click.native="partTypesClick"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </div>

            <div>条</div>
          </div>
        </div>
        <el-checkbox-group
          v-model="bushForm"
          @change="handleCheckedColumnChangeSales"
        >
          <div class="cont2" v-for="(item, index) in puchaList" :key="index">
            <div class="left">
              <!-- <el-checkbox
                  :key="index + 1 * 1"
                  :label="index + 1 * 1"
                ></el-checkbox> -->
            </div>
            <div class="righ" v-if="item.wxlx == 5">
              <div class="mcs">
                <div
                  class="mc"
                  @click="towenxian(item.wxlx, item.pcxsid)"
                  v-if="item.wxlx == 5"
                >
                  {{ item.xmxmmc }}
                  <span
                    style="
                      color: #3694ff;
                      font-size: 12px;
                      color: #3694ff;
                      font-weight: 400;
                    "
                    >(普查线索档案)</span
                  >
                </div>
                <!-- <div
                  class="mc1"
                  @click="shoucang(item.wxlx, item.pcxsid, item.xmxmmc,item )"
                  v-if="item.sfsc==0"
                >
                  <img src="../../assets/images/s1.png" alt="" />
                  <div>收藏</div>
                </div>
                <div class="mc1" @click="qxshoucang(item.wxlx, item.pcxsid, item)" v-else>
                  <img src="../../assets/images/s2.png" alt="" />
                  <div>收藏</div>
                </div> -->
              </div>
              <div class="fx" @click="towenxian(item.wxlx, item.pcxsid)">
                <span v-if="item.pcxsid">传承人：{{ item.pcxspcrname }}</span>
                <el-divider direction="vertical"></el-divider>
                <span>{{ item.pcxsxsqy }}</span>
                <el-divider direction="vertical"></el-divider>

                <span v-if="item.pcxsid">{{ item.pcxssbsj | dataFormat }}</span>
              </div>
              <div
                @click="towenxian(item.wxlx, item.pcxsid)"
                class="nr"
                v-html="item.pcxsxmjj"
                v-if="item.pcxsxmjj"
              ></div>
            </div>
            <div
              class="righ"
              
              v-if="item.wxlx == 6"
            >
              <div class="mcs">
                <div class="mc" v-if="item.wxlx == 6" @click="towenxian(item.wxlx, item.dcxmid)">
                  {{ item.dcxmxmmc }}
                  <span
                    style="
                      color: #3694ff;
                      font-size: 12px;
                      font-weight: 400;
                      color: #ffb636;
                    "
                    >(调查项目档案)</span
                  >
                </div>
                <!-- <div
                  class="mc1"
                  @click="shoucang(item.wxlx, item.dcxmid, item.dcxmxmmc,item )"
                  v-if="item.sfsc==0"
                >
                  <img src="../../assets/images/s1.png" alt="" />
                  <div>收藏</div>
                </div>
                <div class="mc1" @click="qxshoucang(item.wxlx, item.dcxmid,item)" v-else>
                  <img src="../../assets/images/s2.png" alt="" />
                  <div>收藏</div>
                </div> -->
              </div>
              <div class="fx" @click="towenxian(item.wxlx, item.dcxmid)">
                <span>传承人：{{ item.dcxmdcrxm }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.dcxmxmmlname"
                ></el-divider>
                <span v-if="item.dcxmxmmlname">{{ item.dcxmxmmlname }}</span>
                <el-divider direction="vertical"></el-divider>
                <span>{{ item.dcxmdcsj | dataFormat }}</span>
              </div>
              <div @click="towenxian(item.wxlx, item.dcxmid)" class="nr" v-html="item.dcxmnr1"></div>
            </div>
            <div
              class="righ"
              
              v-if="item.wxlx == 7"
            >
              <div class="mcs">
                <div class="mc " @click="towenxian(item.wxlx, item.xmid)">
                  {{ item.xmxmmc }}
                  <span
                    style="
                      color: #3694ff;
                      font-size: 12px;
                      font-weight: 400;
                      color: #31b6d6;
                    "
                    >(非遗项目申报书)</span
                  >
                </div>
                <!-- <div
                  class="mc1"
                  @click="shoucang(item.wxlx, item.xmid, item.xmxmmc,item )"
                   v-if="item.sfsc==0"
                >
                  <img src="../../assets/images/s1.png" alt="" />
                  <div>收藏</div>
                </div>
                <div class="mc1" @click="qxshoucang(item.wxlx, item.xmid, item)" v-else>
                  <img src="../../assets/images/s2.png" alt="" />
                  <div>收藏</div>
                </div> -->
              </div>
              <div class="fx" @click="towenxian(item.wxlx, item.xmid)">
                <span>{{ item.xmjibiename ? item.xmjibiename : "" }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.xmpiciname"
                ></el-divider>
                <span v-if="item.xmpiciname">第{{ item.xmpiciname }}批</span>
                <el-divider
                  direction="vertical"
                  v-if="item.xmxmlbname"
                ></el-divider>
                <span v-if="item.xmxmlbname">{{ item.xmxmlbname }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.xmgbsj"
                ></el-divider>
                <span v-if="item.xmgbsj">{{ item.xmgbsj }}</span>
              </div>
              <div @click="towenxian(item.wxlx, item.xmid)" class="nr" v-html="item.xmxmjj"></div>
            </div>
            <div
              class="righ"
             
              v-if="item.wxlx == 8"
            >
              <div class="mcs">
                <div class="mc"   @click="towenxian(item.wxlx, item.ccrid)">
                  <div :class="item.ccrqssj!=null?'fxss':''">{{ item.crxm }}</div>
                  
                  <span
                    style="
                      color: #3694ff;
                      font-size: 12px;
                      font-weight: 400;
                      color: #f88b51;
                    "
                    >(传承人申报书)</span
                  >
                </div>
                <!-- <div
                  class="mc1"
                  @click="shoucang(item.wxlx, item.ccrid, item.crxm,item )"
                   v-if="item.sfsc==0"
                >
                  <img src="../../assets/images/s1.png" alt="" />
                  <div>收藏</div>
                </div>
                <div class="mc1" @click="qxshoucang(item.wxlx, item.ccrid, item)" v-else>
                  <img src="../../assets/images/s2.png" alt="" />
                  <div>收藏</div>
                </div> -->
              </div>
              <div class="fx"  @click="towenxian(item.wxlx, item.ccrid)">
                <span >{{ item.ccrjibiename ? item.ccrjibiename : "" }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.ccrpiciname"
                ></el-divider>
                <span v-if="item.ccrpiciname">第{{ item.ccrpiciname }}批</span>
                <el-divider
                  direction="vertical"
                  v-if="item.ccrxmlbname"
                ></el-divider>
                <span v-if="item.ccrxmlbname">{{ item.ccrxmlbname }}</span>
                <el-divider direction="vertical" v-if="item.gbsj"></el-divider>
                <span v-if="item.gbsj">{{ item.gbsj }}</span>
              </div>
              <div  @click="towenxian(item.wxlx, item.ccrid)" class="nr" v-html="item.ccrjianjie"></div>
            </div>
            <div
              class="righ"
              
              v-if="item.wxlx == 9"
              style="display: flex"
            >
              <!-- <img :src="item.jdpicurl" alt="" style="width: 130px;height: 160px;"> -->
              <div style="padding-left: 20px; width: calc(100% - 0px)">
                <div class="mcs">
                  <div class="mc" @click="towenxian(item.wxlx, item.jdid)">
                    {{ item.jdmc }}
                    <span
                      style="
                        color: #3694ff;
                        font-size: 12px;
                        font-weight: 400;
                        color: #6fb22e;
                      "
                      >(基地申报书)</span
                    >
                  </div>
                  <!-- <div
                    class="mc1"
                    @click="shoucang(item.wxlx, item.jdid, item.jdmc,item )"
                     v-if="item.sfsc==0"
                  >
                    <img src="../../assets/images/s1.png" alt="" />
                    <div>收藏</div>
                  </div>
                  <div class="mc1" @click="qxshoucang(item.wxlx, item.jdid, item)" v-else>
                    <img src="../../assets/images/s2.png" alt="" />
                    <div>收藏</div>
                  </div> -->
                </div>
                <div class="fx" @click="towenxian(item.wxlx, item.jdid)">
                  <span>{{ item.jdjibiename ? item.jdjibiename : "" }}</span>
                  <el-divider
                    direction="vertical"
                    v-if="item.jdlxname"
                  ></el-divider>
                  <span v-if="item.jdlxname">{{ item.jdlxname }}</span>
                  <el-divider
                    direction="vertical"
                    v-if="item.ccrxmlbname"
                  ></el-divider>
                  <span v-if="item.ccrxmlbname">{{ item.ccrxmlbname }}</span>
                  <el-divider
                    direction="vertical"
                    v-if="item.gbsj"
                  ></el-divider>
                  <span v-if="item.gbsj">{{ item.gbsj }}</span>
                </div> 
                <div class="nr" @click="towenxian(item.wxlx, item.jdid)"  v-if="item.jdjianjie">{{filtertt(item.jdjianjie)}}</div>
              </div>

              <!-- <div class="nr" v-html="item.ccrjianjie"></div> -->
            </div>
            <div
              class="righ"
              
              v-if="item.wxlx == 28"
            >
              <div class="mcs">
                <div class="mc" @click="towenxian(item.wxlx, item.hyid)">
                  {{ item.hymc }}
                  <span
                    style="
                      color: #3694ff;
                      font-size: 12px;
                      font-weight: 400;
                      color: #ab6df7;
                    "
                    >(会议档案)</span
                  >
                </div>
                <!-- <div
                    class="mc1"
                    @click="shoucang(item.wxlx, item.hyid, item.hymc ,item)"
                    v-if="item.sfsc==0"
                  >
                    <img src="../../assets/images/s1.png" alt="" />
                    <div>收藏</div>
                  </div>
                  <div class="mc1" @click="qxshoucang(item.wxlx, item.hyid, item)" v-else>
                    <img src="../../assets/images/s2.png" alt="" />
                    <div>收藏</div>
                  </div> -->
              </div>
              <div class="fx" @click="towenxian(item.wxlx, item.hyid)">
                <span>{{ item.hyjibiename ? item.hyjibiename : "" }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.hylxname"
                ></el-divider>
                <span v-if="item.hylxname">{{ item.hylxname }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.hyxgxmmc"
                ></el-divider>
                <span v-if="item.hyxgxmmc">相关项目：{{ item.hyxgxmmc }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.hyxgccrxm"
                ></el-divider>
                <span v-if="item.hyxgxmmc"
                  >相关传承人：{{ item.hyxgccrxm }}</span
                >
                <el-divider direction="vertical" v-if="item.hysj"></el-divider>
                <span v-if="item.hysj">{{ item.hysj }}</span>
              </div>
              <div @click="towenxian(item.wxlx, item.hyid)" class="nr" v-html="item.ccrjianjie"></div>
            </div>
            <div
              class="righ"
              
              v-if="item.wxlx == 29"
              style="display: flex"
            >
              <img
              @click="towenxian(item.wxlx, item.hdid)"
                :src="item.hdpicurl"
                alt=""
                style="width: 130px; height: 160px"
              />
              <div style="padding-left: 20px; width: calc(100% - 150px)">
                <div class="mcs">
                  <div class="mc" @click="towenxian(item.wxlx, item.hdid)">
                    {{ item.hdmc }}
                    <span
                      style="
                        color: #3694ff;
                        font-size: 12px;
                        font-weight: 400;
                        color: #6fb22e;
                      "
                      >(活动档案)</span
                    >
                  </div>
                  <!-- <div
                    class="mc1"
                    @click="shoucang(item.wxlx, item.hdid, item.hdmc,item )"
                     v-if="item.sfsc==0"
                  >
                    <img src="../../assets/images/s1.png" alt="" />
                    <div>收藏</div>
                  </div>
                  <div class="mc1" @click="qxshoucang(item.wxlx, item.hdid, item)" v-else>
                    <img src="../../assets/images/s2.png" alt="" />
                    <div>收藏</div>
                  </div> -->
                </div>
                <div class="fx" @click="towenxian(item.wxlx, item.hdid)">
                  <span>{{ item.hdjbname ? item.hdjbname : "" }}</span>
                  <el-divider
                    direction="vertical"
                    v-if="item.hdlxname"
                  ></el-divider>
                  <span v-if="item.hdlxname">{{ item.hdlxname }}</span>

                  <el-divider
                    direction="vertical"
                    v-if="item.hdkssj"
                  ></el-divider>
                  <span v-if="item.hdkssj"
                    >{{ item.hdkssj }} - {{ item.hdjssj }}</span
                  >
                </div>
                <div @click="towenxian(item.wxlx, item.hdid)" class="nr" v-html="item.hdnr"></div>
              </div>
            </div>
            <div
              class="righ"
              
              v-if="item.wxlx == 30"
            >
              <div class="mcs">
                <div class="mc" @click="towenxian(item.wxlx, item.wjid)">
                  {{ item.wjmc }}
                  <span
                    style="
                      color: #3694ff;
                      font-size: 12px;
                      font-weight: 400;
                      color: #ab6df7;
                    "
                    >(文件档案)</span
                  >
                </div>
                <!-- <div
                    class="mc1"
                    @click="shoucang(item.wxlx, item.wjid, item.wjmc ,item)"
                     v-if="item.sfsc==0"
                  >
                    <img src="../../assets/images/s1.png" alt="" />
                    <div>收藏</div>
                  </div>
                  <div class="mc1" @click="qxshoucang(item.wxlx, item.wjid, item)" v-else>
                    <img src="../../assets/images/s2.png" alt="" />
                    <div>收藏</div>
                  </div> -->
              </div>
              <div class="fx" @click="towenxian(item.wxlx, item.wjid)">
                <span>{{ item.wjjbname ? item.wjjbname : "" }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.wjlbname"
                ></el-divider>
                <span v-if="item.wjlbname">{{ item.wjlbname }}</span>
                <el-divider
                  direction="vertical"
                  v-if="item.wjlxname"
                ></el-divider>
                <span v-if="item.wjlxname">{{ item.wjlxname }}</span>

                <el-divider
                  direction="vertical"
                  v-if="item.wjfwsj"
                ></el-divider>
                <span v-if="item.wjfwsj">{{ item.wjfwsj | dataFormat }}</span>
              </div>
              <div class="nr" @click="towenxian(item.wxlx, item.wjid)" v-html="item.wjqw"></div>
            </div>
          </div>
        </el-checkbox-group>
        <div class="cont3" >
          <el-pagination
            background
            layout="prev, pager, next"
            :total="total"
            @current-change="handleCurrentChange"
            :page-size="value * 1"
            :current-page.sync="currentPage4"
          >
          </el-pagination>
        </div>
      </div>
    </div>
  </div>
</template>
<style scoped  lang="scss">
::v-deep .el-checkbox-group {
  display: flex;
  flex-direction: column;
  font-size: 0;
}
::v-deep .el-checkbox {
  padding-bottom: 12px;
}
::v-deep .el-checkbox__label {
  font-size: 12px;
  font-family: Source Han Sans CN-Regular, Source Han Sans CN;
  font-weight: 400;
  color: #333333;
}
// 分页
::v-deep .el-pagination.is-background .el-pager li {
  background-color: #fff;
}
::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #911f23;
  color: #fff;
}
::v-deep .el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: #911f23;
}
//分页数
::v-deep .el-select-dropdown__item.selected {
  color: #911f23 !important;
}
::v-deep .el-input__inner {
  color: #911f23;
}

::v-deep .el-checkbox__input.is-checked + .el-checkbox__label {
  color: #333;
}
::v-deep .el-divider--vertical {
  height: 15px;
}
::v-deep .el-radio {
  .el-radio__input {
    .el-radio__inner {
      border-radius: 2px;
    }
  }
  .el-radio__input.is-checked .el-radio__inner::after {
    content: "";
    width: 8px;
    height: 3px;
    border: 2px solid white;
    border-top: transparent;
    border-right: transparent;
    text-align: center;
    display: block;
    position: absolute;
    top: 2px;
    left: 1px;
    vertical-align: middle;
    transform: rotate(-45deg);
    border-radius: 0px;
    background: none;
  }
}
::v-deep .el-radio {
  line-height: 30px;
  display: block;
  .el-radio__label {
    font-size: 12px;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #333333;
    span {
      color: #999999;
      padding-left: 10px;
    }
  }
}
::v-deep .el-input--suffix .el-input__inner {
  width: 70px;
  height: 22px;
  margin: 0 6px;
}
/*右侧图标样式  \e790下箭头图标*/
::v-deep .el-select .el-input .el-select__caret.el-input__icon::before {
  content: " \e790";
  color: #333333;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
}
::v-deep .el-select .el-input .el-select__caret {
  transform: rotateZ(0deg);
}

.s1 {
  width: 1400px;
  margin: 24px auto 90px;
  .riao {
    width: 100%;
    display: flex;
    padding: 0 0 24px;
    .ria {
      padding: 8px 16px;
      border-radius: 4px;
      background-color: #e8e8e8;
      margin-right: 20px;
      font-size: 14px;
      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
      font-weight: 400;
      color: #333333;
      cursor: pointer;
    }
    .riaactive {
      background-color: #ede1e2;
      color: #911f23;
    }
  }
  .riao1 {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .s11 {
    width: 240px;
    .s11-1 {
      width: 100%;
      // height: 376px;
      margin-bottom: 24px;
      .smn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 32px);
        height: 46px;
        background-color: #f2f2f2;
        border-radius: 8px 8px 0px 0px;
        padding: 0 16px;
        font-size: 14px;
        font-family: Source Han Sans CN-Regular, Source Han Sans CN;
        font-weight: 400;
        color: #333333;
        cursor: pointer;
      }
      .smn1 {
        width: calc(100% - 32px);
        max-height: 300px;
        overflow: auto;
        padding: 18px 16px 12px;
        background-color: #fff;
        border-radius: 0px 0px 8px 8px;
        // line-height: 45px;
      }
    }
  }
  .s12 {
    width: 1140px;
    .cont {
      width: 100%;
      display: flex;
      justify-content: space-between;
      .cont-1 {
        display: flex;
        font-size: 14px;
        font-family: Source Han Sans CN-Regular, Source Han Sans CN;
        font-weight: 400;
        color: #333333;
        span {
          color: #911f23;
        }
      }
      .cont-2 {
        display: flex;
        font-size: 14px;
        font-family: Source Han Sans CN-Regular, Source Han Sans CN;
        font-weight: 400;
        color: #666666;
        span {
          color: #911f23;
          padding: 0 4px;
        }
        .shuliang {
          padding-left: 24px;
        }
      }
    }
    .cont1 {
      width: calc(100% - 32px);
      height: 48px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 16px;
      background: #ffffff;
      border-radius: 8px 8px 8px 8px;
      margin-top: 16px;
      .cont1-1 {
        width: 40%;
        display: flex;
        .cont1-12 {
          font-size: 14px;
          font-family: Source Han Sans CN-Regular, Source Han Sans CN;
          font-weight: 400;
          color: #333333;
          padding-left: 12px;
          span {
            padding: 0 6px;
            color: #911f23;
          }
        }
        .cont1-13 {
          margin-left: 12px;
          width: 44px;
          height: 22px;
          background: #911f23;
          border-radius: 4px 4px 4px 4px;
          opacity: 1;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 14px;
          font-family: Source Han Sans CN-Regular, Source Han Sans CN;
          font-weight: 400;
          color: #ffffff;
        }
        .cont1-14 {
          margin-left: 12px;
          width: 72px;
          height: 20px;
          border-radius: 4px 4px 4px 4px;
          opacity: 1;
          border: 1px solid #911f23;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 14px;
          font-family: Source Han Sans CN-Regular, Source Han Sans CN;
          font-weight: 400;
          color: #911f23;
        }
      }
      .cont1-2 {
        width: 20%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 14px;
        font-family: Source Han Sans CN-Regular, Source Han Sans CN;
        font-weight: 400;
        color: #333333;
      }
      .cont1-3 {
        width: 40%;
        display: flex;
        // justify-content: flex-end;
        align-items: center;
        font-size: 14px;
        font-family: Source Han Sans CN-Regular, Source Han Sans CN;
        font-weight: 400;
        color: #333333;
        img {
          // padding-top: 8px;
          height: 20px;
          width: 20px;
        }
        span {
          color: #911f23;
        }
      }
    }
    .cont2 {
      width: calc(100% - 32px);
      padding: 16px;
      background: #ffffff;
      border-radius: 8px 8px 8px 8px;
      opacity: 1;
      margin-top: 12px;
      display: flex;
      cursor: pointer;
      .left {
        width: 0%;
      }
      .righ {
        width: 100%;
        .mcs {
          width: 100%;
          display: flex;
          justify-content: space-between;
          // align-items: center;
          .mc {
            display: flex;
            align-items: center;
            height: 24px;
            font-size: 18px;
            font-family: Source Han Sans CN-Regular, Source Han Sans CN;
            font-weight: 600;
            color: #3d3d3d;
          }
          .fxss{
            border-radius: 4px;
            border:1px solid #333;
            padding: 0px 6px;
            margin-right: 6px;
          }
          .mc1 {
            display: flex;
            align-items: center;
            font-size: 12px;
            font-family: Source Han Sans CN-Regular, Source Han Sans CN;
            font-weight: 400;
            color: #333333;
            img {
              width: 16px;
              height: 16px;
            }
          }
        }
        .fx {
          margin-top: 16px;
          font-size: 12px;
          font-family: Source Han Sans CN-Regular, Source Han Sans CN;
          font-weight: 400;
          color: #666666;
         
        }
        .nr {
          width: 100%;
          margin-top: 16px;
          font-size: 12px !important;
          font-family: Source Han Sans CN-Regular, Source Han Sans CN;
          font-weight: 400;
          color: #666666;
          line-height: 20px;
          display: -webkit-box;
          -webkit-line-clamp: 3;
          -webkit-box-orient: vertical;
          overflow: hidden;
        }
      }
    }
    .cont3 {
      width: 1400px;
      margin-top: 16px;
      text-align: center;
      transform: translateX(-10%);
    }
  }
}
</style>

<script>
import {
  getyear,
  getml,
  getjb,
  getPc,
  getdxsx,
  getyearleibie,
  getsc,
  getqxsc
} from "@/api/api.js";
export default {
  data() {
    return {
      scs:0,
      //单选
      riaact: 0,
      options: [
        {
          value: "10",
          label: "10",
        },
        {
          value: "20",
          label: "20",
        },
        {
          value: "30",
          label: "30",
        },
        {
          value: "50",
          label: "50",
        },
        {
          value: "100",
          label: "100",
        },
      ],
      value: "10",
      radio: "0",
      radio1: "0",
      radio2: "0",
      time1: [
        { id: 5, mc: "普查线索档案", fid: 2, num: 0, children: [] },
        { id: 6, mc: "调查项目档案", fid: 2, num: 0, children: [] },
        { id: 7, mc: "非遗项目申报书", fid: 3, num: 0, children: [] },
        { id: 8, mc: "传承人申报书", fid: 3, num: 0, children: [] },
        { id: 9, mc: "基地申报书", fid: 3, num: 0, children: [] },
        // {id: 28, mc: "会议档案", fid: 4, num: 0, children: []},
        // {id: 29, mc: "活动档案", fid: 4, num: 0, children: []},
        // { id: 30, mc: "文件档案", fid: 4, num: 0, children: [] },
      ],

      show: true,
      show1: true,

      checkAll: false,
      isALL: false, // 全选框是否在勾选状态
      tableData: [
        {
          id: "1",
          code: "Y000028",
          name: "医疗",
        },
        {
          id: "2",
          code: "Y000029",
          name: "场馆",
        },
        {
          id: "3",
          code: "Y000030",
          name: "机场站房",
        },
      ], //全部数据
      bushForm: [], //选中的数据

      //年份
      yearList: [],

      //普查
      pageIndex: 1,
      pageSize: 10,
      type: [5, 6],
      keyword: "",
      nianfen: [],
      jibie: "",
      puchaList: [],
      total: 0,

      danlei: 0,
      bookriao: [],
      yhm:{},
      diqulist:[],
      //地区排序
      diqumax:[],
      //批次排序
      picidzlist:[],
      //级别排序
      jibielei:[
        {id:242, name: "联合国",},
        {id:12, name: "国家级", },
        {id:13, name: "省级",}
      ],
      fxjblist:[],
      jbmax:[],
      show2: true,
      //项目门类
      menleilist:[],
      show3:true,
      mbmax:[],
      //批次
      picilist:[],
      show4:true,
      show5:true,
      picimax:[],
      currentPages:0,
      currentPage4:1,
      jddilist:[],
      jdleibie:[]

    };
  },
  created() {
    // this.diqulist = sessionStorage.getItem("diqu")?JSON.parse(sessionStorage.getItem("diqu")):[]
    // this.picidzlist = sessionStorage.getItem("diqu")?JSON.parse(sessionStorage.getItem("diqu")):[]
    this.yhm = JSON.parse(sessionStorage.getItem("loginInfo"))
      ? JSON.parse(sessionStorage.getItem("loginInfo"))
      : "";
    this.danlei = sessionStorage.getItem("pcdangxiang")
      ? sessionStorage.getItem("pcdangxiang")
      : sessionStorage.getItem("gglx");
    if (this.danlei == 1) {
      // this.nianfen = sessionStorage.getItem("pcnfs")
      //   ? JSON.parse(sessionStorage.getItem("pcnfs"))
      //   : [];
      this.type = JSON.parse(sessionStorage.getItem("pcleibie"))
        ? JSON.parse(sessionStorage.getItem("pcleibie"))
        : [0];
      this.keyword = sessionStorage.getItem("sousuo")
        ? sessionStorage.getItem("sousuo")
        : "";
      this.riaact = this.type[0] == 0 ? 0 : this.type[0];
      if (this.riaact == 0) {
        this.type = [5, 6, 7, 8, 9, ];
      }
      this.getYearlb();
      this.danxiang();
    } else {
      // this.nianfen = sessionStorage.getItem("pcnfs")
      //   ? JSON.parse(sessionStorage.getItem("pcnfs"))
      //   : [];
      this.type = JSON.parse(sessionStorage.getItem("pcleibie"))
        ? JSON.parse(sessionStorage.getItem("pcleibie"))
        : [5, 6, 7, 8, 9, ];
      this.keyword = sessionStorage.getItem("sousuo")
        ? sessionStorage.getItem("sousuo")
        : "";
      this.riaact = sessionStorage.getItem("szGaoliang")
        ? sessionStorage.getItem("szGaoliang")
        : 0;
      this.getYearlb();
      this.getpucha();
    }
  },
  mounted() {
    // this.getYear();
  },
  methods: {
    filtertt(text) {
      var reg = /<[^<>]+>/g; //1、全局匹配g肯定忘记写,2、<>标签中不能包含标签实现过滤HTML标签
      text = text.replace(reg, ""); //替换HTML标签
      text = text.replace(/&emsp;/gi, ""); //替换HTML空格
      text = text.replace(/&nbsp;/gi, "");
      return text;
    },
    pcmaxst(val){
      if (this.danlei == 1) {
        this.picimax = val
        this.getYearlb();
        this.danxiang();
      } else {
        this.picimax = val
        this.getYearlb();
        this.getpucha();
      }
    
    },
    pcmaxstjd(val){
      if (this.danlei == 1) {
        this.jdleibie = val
        this.getYearlb();
        this.danxiang();
      } else {
        this.jdleibie = val
        this.getYearlb();
        this.getpucha();
      }
    
    },
    mbmaxst(val){
      if (this.danlei == 1) {
        this.mbmax = val
        this.getYearlb();
        this.danxiang();
      } else {
        this.mbmax = val
        this.getYearlb();
        this.getpucha();
      }
    
    },
    jbmaxst(val){
      if (this.danlei == 1) {
        this.jbmax = val
        this.getYearlb();
        this.danxiang();
      } else {
        this.jbmax = val
        this.getYearlb();
        this.getpucha();
      }
    
    },
    diqumaxs(val){
      if (this.danlei == 1) {
        this.diqumax = val
        this.getYearlb();
        this.danxiang();
      } else {
        this.diqumax = val
        this.getYearlb();
        this.getpucha();
      }
    
    },
    async shoucang(lx, id, mc, item) {
      let res = await getsc({
        lx: lx,
        zyid: id,
        zymc: mc,
        yhid: this.yhm.id,
      });
      if (res.code == 0) {
        this.scs = id;

        this.$message({
          message: "收藏成功",
          type: "success",
        });
        return item.sfsc = 1;
      } else {
        this.$message.error(res.msg);
      }
    },
    async qxshoucang(lx, id, item) {
      let res = await getqxsc({
        zylx: lx,
        zyid: id,
        yhid: this.yhm.id,
      });
      if (res.code == 0) {
        this.$message({
          message: "取消收藏成功",
          type: "success",
        });
        return item.sfsc = 0;
      } else {
        this.$message.error(res.msg);
      }
    },
    async getYearlb() {
      
      let formData = new FormData();
      // 调用append()方法添加数据
      formData.append("keyword", this.keyword);
      formData.append("lm", 1);
      if (this.type.length != 0) {
        this.type.map((item, index) => {
          formData.append("type ", item);
        });
      }
      if(this.diqumax.length !=0){
        this.diqumax.map((item, index) => {
          formData.append("area ", item);
        })
      }
      if (this.nianfen.length != 0) {
        this.nianfen.map((item, index) => {
          formData.append("year ", item);
        });
      }
      if(this.jbmax.length !=0){
        this.jbmax.map((item, index) => {
          formData.append("jibie ", item);
        })
      }
      if(this.mbmax.length !=0){
        this.mbmax.map((item, index) => {
          formData.append("ml ", item);
        })
      }
      if(this.picimax.length !=0){
        this.picimax.map((item, index) => {
          formData.append("pc", item);
        })
      }
      if(this.jdleibie.length !=0){
        this.jdleibie.map((item, index) => {
          formData.append("jdlx", item);
        })
      }
      let res = await getyearleibie(formData);
      if (res.code == 0) {
        this.yearList = res.data.yearList?res.data.yearList:[];
        this.diqulist = res.data.dqList?res.data.dqList:[];
        this.fxjblist = res.data.jbList?res.data.jbList:[]
        this.menleilist = res.data.mlList?res.data.mlList:[]
        this.picilist =  res.data.pcList?res.data.pcList:[]
        this.jddilist =  res.data.jdList?res.data.jdList:[]
       
        if (res.data.yearList == null) {
          this.sjnull = 1;
        }
      }
    },
    tiatab(id) {
      this.currentPage4 = 1
      sessionStorage.setItem("szGaoliang", JSON.stringify(id));
      if (this.danlei != 1) {
        if (id == 0) {
          this.bookriao = [5, 6, 7, 8, 9];
          this.type = this.bookriao;
          sessionStorage.setItem("pcleibie", 0);
          this.riaact = id;
          this.getYearlb();
          this.getpucha();
        } else {
          this.bookriao = [];
          this.bookriao.push(id);
          this.type = this.bookriao;
          sessionStorage.setItem("pcleibie", JSON.stringify(this.bookriao));
          this.riaact = id;
          this.getYearlb();
          this.getpucha();
        }
      } else {
        if (id == 0) {
          this.bookriao = [5, 6, 7, 8, 9, ];
          this.bookriao.push(id);
          this.type = this.bookriao;
          sessionStorage.setItem("pcleibie", 0);
          this.riaact = id;
          this.getYearlb();
          this.danxiang();
        } else {
          this.bookriao = [];
          this.bookriao.push(id);
          this.type = this.bookriao;
          sessionStorage.setItem("pcleibie", JSON.stringify(this.bookriao));
          this.riaact = id;
          this.getYearlb();
          this.danxiang();
        }
      }
    },
    async danxiang() {
      let formData = new FormData();
      // 调用append()方法添加数据
      formData.append("keyword", this.keyword);
      formData.append("pageIndex", this.pageIndex);
      formData.append("pageSize", this.pageSize);

      if (this.type.length != 0) {
        this.type.map((item, index) => {
          formData.append("type ", item);
        });
      }
      if (this.nianfen.length != 0) {
        this.nianfen.map((item, index) => {
          formData.append("year ", item);
        });
      }
      if(this.diqumax.length !=0){
        this.diqumax.map((item, index) => {
          formData.append("area ", item);
        })
      }
      if(this.jbmax.length !=0){
        this.jbmax.map((item, index) => {
          formData.append("jibie ", item);
        })
      }
      if(this.mbmax.length !=0){
        this.mbmax.map((item, index) => {
          formData.append("ml ", item);
        })
      }
      if(this.picimax.length !=0){
        this.picimax.map((item, index) => {
          formData.append("pc", item);
        })
      }
      if(this.jdleibie.length !=0){
        this.jdleibie.map((item, index) => {
          formData.append("jdlx", item);
        })
      }
      let res = await getdxsx(formData);
     
      this.puchaList = res.list;
      this.total = res.total;
      //
    },

    shunianfen(val) {
      if (this.danlei == 1) {
        this.nianfen = val;
        sessionStorage.setItem("pcnfs", JSON.stringify(val));
        this.danxiang();
        this.getYearlb();
      } else {
        this.nianfen = val;
        sessionStorage.setItem("pcnfs", JSON.stringify(val));
        this.getpucha();
        this.getYearlb();
      }
    },
    shulb(val) {
      this.pageIndex = 1;
      this.type = val;
      this.danlei = 0;
      sessionStorage.setItem("pcleibie", JSON.stringify(val));
      sessionStorage.setItem("pcdangxiang", 0);
      this.getpucha();
    },
    partTypesClick(e) {
      this.pageSize = this.value;
      if (this.danlei == 0) {
        this.getpucha();
      } else if (this.danlei == 1) {
        this.danxiang();
      }
    },
    handleCurrentChange(val) {
      this.pageIndex = val;
      if (this.danlei == 0) {
        this.getpucha();
      } else if (this.danlei == 1) {
        this.danxiang();
      }
    },
    async getpucha() {
      let formData = new FormData();
      // 调用append()方法添加数据
      formData.append("keyword", this.keyword);
      formData.append("pageIndex", this.pageIndex);
      formData.append("pageSize", this.pageSize);
      // formData.append("zhaopian", this.up1);
      if (this.type.length != 0) {
        this.type.map((item, index) => {
          formData.append("type ", item);
        });
      }
      if (this.nianfen.length != 0) {
        this.nianfen.map((item, index) => {
          formData.append("year ", item);
        });
      }
      if(this.diqumax.length !=0){
        this.diqumax.map((item, index) => {
          formData.append("area ", item);
        })
      }
      if(this.jbmax.length !=0){
        this.jbmax.map((item, index) => {
          formData.append("jibie ", item*1);
        })
      }
      if(this.mbmax.length !=0){
        this.mbmax.map((item, index) => {
          formData.append("ml ", item);
        })
      }
      if(this.picimax.length !=0){
        this.picimax.map((item, index) => {
          formData.append("pc", item);
        })
      }
      if(this.jdleibie.length !=0){
        this.jdleibie.map((item, index) => {
          formData.append("jdlx", item);
        })
      }
      let res = await getPc(formData);
     
      this.puchaList = res.list;
      this.total = res.total;
    },
    async getYear() {
      this.nianfen = [];
      let res = await getyear();
      if (res.code == 200) {
        this.yearList = res.data;
      }
    },

    towenxian(id, lx) {
      if (id == 7) {
        const { href } = this.$router.resolve({
          path: "/literature",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else if (id == 8) {
        const { href } = this.$router.resolve({
          path: "/ccr",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else if (id == 28) {
        const { href } = this.$router.resolve({
          path: "/huiyi",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else if (id == 9) {
        const { href } = this.$router.resolve({
          path: "/jidi",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else if (id == 29) {
        const { href } = this.$router.resolve({
          path: "/hd",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else if (id == 6) {
        const { href } = this.$router.resolve({
          path: "/txxm",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else if (id == 5) {
        const { href } = this.$router.resolve({
          path: "/pcxs",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      } else {
        const { href } = this.$router.resolve({
          path: "/pucha",
          query: { id: id, lx: lx },
        });
        window.open(href, "_blank");
      }
    },
  
    handleCheckedColumnChangeSales(value) {
      let checkedCount = value.length;
      this.checkAll = checkedCount === this.tableData.length;
      this.isALL = checkedCount > 0 && checkedCount < this.tableData.length;
    },
    toshow() {
      this.show = !this.show;
    },
    toshow1() {
      this.pageIndex = 1;
      this.show1 = !this.show1;
    },
    toshow2() {
      this.pageIndex = 1;
      this.show2 = !this.show2;
    },
    toshow3() {
      this.pageIndex = 1;
      this.show3 = !this.show3;
    },
    toshow4() {
      this.pageIndex = 1;
      this.show4 = !this.show4;
    },
    toshow5() {
      this.pageIndex = 1;
      this.show5 = !this.show5;
    },
  },
  computed: {},
  components: {},
};
</script>
